module.exports = {
  publicPath: '/',

  // outputDir: 在npm run build 或 yarn build 时 ，生成文件的目录名称（要和baseUrl的生产环境路径一致）
  outputDir: 'dist',
  assetsDir: '',
  filenameHashing: false,
  lintOnSave: false,
  devServer: {
    host: 'localhost',
    port: 9000,
    https: false,
    publicPath: '/',
    open: true, 
    proxy: {
      '/oauth': {
        target: 'https://test-passport.gomro.cn', 
        ws: true, // 是否启用websockets
        secure: true,
        changeOrigin: true, 
        pathRewrite: {
          '^/api': '' 
        }
      }
    }
  }
}
